package com.tiancheng.trade.settlement.exception;

public class FrameworkException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private Integer code = 0;

    private String message;

    public void setMessage(String message) {
        this.message = message;
    }

    public FrameworkException() {
        super();
    }

    public FrameworkException(String message) {
        super(message);
        this.message = message;
    }

    public FrameworkException(Integer code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public FrameworkException(String message, Throwable cause) {
        super(message, cause);
        this.message = message;
    }

    public FrameworkException(Integer code, Throwable cause) {
        super(cause);
        this.code = code;
    }

    public FrameworkException(Throwable cause) {
        super(cause);
    }

    protected FrameworkException(String message, Throwable cause,
                                 boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }
}
